import { translateTitle } from '@/utils/i18n'
const UsingJavaToRealizeMaintenance = {
  UsingJavaToRealizeMaintenance: {
    search: {
      form: {
        method: 'AppInterfaceImplQuery',
        name: 'search',
        field: [
          {
            type: 'input',
            name: 'BEAN_NAME',
            label: translateTitle('Dams.ApplicationInterface.JAVA实现类名'),
            labelHidden: false,
          },
          {
            type: 'input',
            name: 'BEAN_DESC',
            label: translateTitle('Dams.ApplicationInterface.JAVA实现类描述'),
            labelHidden: false,
          },
          {
            type: 'select',
            name: 'SUB_SYSTEM',
            label: translateTitle('Dams.ApplicationInterface.所属子系统'),
            options: [],
            filterable: true,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.查询'),
            labelHidden: true,
          },
        ],
      },
    },
    dialog: {
      form: {
        method: '',
        name: 'dialog',
        field: [
          {
            type: 'input',
            name: 'BEAN_NAME',
            label: translateTitle('Dams.ApplicationInterface.JAVA实现类名'),
            isRules: true,
          },
          {
            type: 'input',
            name: 'BEAN_DESC',
            label: translateTitle('Dams.ApplicationInterface.JAVA实现类描述'),
            isRules: true,
          },
          {
            type: 'select',
            name: 'BEAN_IMPL_INTERFACE',
            label: translateTitle('Dams.ApplicationInterface.JAVA实现类接口'),
            options: [],
            filterable: true,
            isRules: true,
          },
          {
            type: 'cascader',
            name: 'MODULE_ID',
            label: translateTitle('Dams.ApplicationInterface.模块ID'),
            option: [],
            isRules: true,
            props: {
              emitPath: false,
            },
          },
          {
            type: 'select',
            name: 'LANGUGE_CODE',
            label: translateTitle('Dams.ApplicationInterface.语言'),
            options: [],
            isRules: true,
          },
          {
            type: 'select',
            name: 'ACTIVE',
            label: translateTitle('Dams.ApplicationInterface.活动标记'),
            options: [
              {
                LABEL: translateTitle('Dams.ApplicationInterface.是'),
                CODE: 'Y',
              },
              {
                LABEL: translateTitle('Dams.ApplicationInterface.否'),
                CODE: 'N',
              },
            ],
            isRules: true,
          },
          {
            type: 'select',
            name: 'DEFAULT_ACTIVE',
            label: translateTitle('Dams.ApplicationInterface.默认活动标记'),
            disabled_edit: false,
            disabled_add: false,
            options: [
              {
                LABEL: translateTitle('Dams.ApplicationInterface.是'),
                CODE: 'Y',
              },
              {
                LABEL: translateTitle('Dams.ApplicationInterface.否'),
                CODE: 'N',
              },
            ],
            isRules: true,
            value: '',
          },
          {
            type: 'input',
            name: 'EDIT_USER_NAME',
            label: translateTitle('Dams.ApplicationInterface.编辑人'),
            hidden: true,
            disabled_edit: true,
          },
          {
            type: 'input',
            name: 'EDIT_DATE_TIME',
            label: translateTitle('Dams.ApplicationInterface.编辑时间'),
            hidden: true,
            disabled_edit: true,
          },
          {
            type: 'input',
            name: 'ADD_USER_NAME',
            label: translateTitle('Dams.ApplicationInterface.新增人'),
            hidden: true,
            disabled_edit: true,
          },
          {
            type: 'input',
            name: 'ADD_DATE_TIME',
            label: translateTitle('Dams.ApplicationInterface.新增时间'),
            hidden: true,
            disabled_edit: true,
          },
          {
            type: 'select',
            name: 'SUB_SYSTEM',
            label: translateTitle('Dams.ApplicationInterface.所属子系统'),
            options: [],
            isRules: true,
            filterable: true,
          },
          {
            type: 'button',
            label: translateTitle('Dams.ApplicationInterface.提交'),
            labelHidden: true,
          },
        ],
      },
    },
    addMethod: 'AppInterfaceImplInsert',
    updateMethod: 'AppInterfaceImplUpdate',
    deleteMethod: 'AppInterfaceImplDelete',
  },
}
export default UsingJavaToRealizeMaintenance
